package com.tmxk.day01.lifeng.demo1;

public class PersonTest_lifeng {
	public static void main(String[] args) {
		//由类模板生成对象,类是能生成多个实例对象
		//创建Person实例对象
		Person_lifeng person = new Person_lifeng();
		//给对象实例赋值   语法: 实例对象值,属性
		//对象名,方法名()
		person.name = "饶嘉涛";
		person.eat("饶嘉涛");
		Person_lifeng person1 = new Person_lifeng();
		person1.name = "张传玉";
		person1.eat("张传玉");
		person.eat("饶嘉涛",2);
	}
}
